#region Using

using System;
using System.Xml;
using System.IO;
using System.Collections.Generic;
using System.Collections.Specialized;
using BlogEngine.Core;
using BlogEngine.Core.Providers.EloqueraProvider.Db;

#endregion

namespace BlogEngine.Core.Providers {
    /// <summary>
    /// A storage provider for BlogEngine that uses XML files.
    /// <remarks>
    /// To build another provider, you can just copy and modify
    /// this one. Then add it to the web.config's BlogEngine section.
    /// </remarks>
    /// </summary>
    public partial class EloqueraBlogProvider : BlogProvider {

        /// <summary>
        /// Loads the stop words used in the search feature.
        /// </summary>
        /// <returns></returns>
        public override StringCollection LoadStopWords() {
            EqStopWords stopW = (EqStopWords)EqDb.ExecuteScalar("select EqStopWords");
            StringCollection sc = new StringCollection();
            sc.AddRange(stopW.Words);
            return sc;
        }
    }
}